import {
  getRequest,
  postRequest,
  postJsonRequest
} from '@/api/axios.js'

// 用于登录用户所学习的课程ID
export const getCourseStudying = (params) => {
  return postRequest('/sys/course-choose-record/getCourseStudying', params)
}

//获取课程介绍信息
export const getCourseIntroduce = (params) => {
  return postRequest('/sys/course-choose-record/getCourseIntroduce', params)
}
//获取课程评价信息
export const getCourseEvaluate = (params) => {
  return postRequest('/sys/course-choose-record/getCourseEvaluate', params)
}
//加入课程
export const joinCourse = (params) => {
  return postJsonRequest('/sys/course-choose-record/joinCourse', params)
}
//评价课程
export const evaluateCourse = (params) => {
  return postJsonRequest('/sys/course-choose-record/evaluateCourse', params)
}
//是否评价过课程  
export const getIsEvaluate = (params) => {
  return postJsonRequest('/sys/course-choose-record/getIsEvaluate', params)
}